<%@ include file="include.jsp" %>
<!-- start main page -->

<div id="content-wrap">
<div id="main"><br />
<h3>Review For ${drug.name}</h3>
<br />
<div style="text-align: left;">

<form:form action="reviewSaved.html" modelAttribute="newReview">

How would you rate this drug: <br />
<select name=rating>
<option value=1>1 star (poor)</option>
<option value=2>2 star (below average)</option>
<option value=3 selected>3 star (average)</option>
<option value=4>4 star (above average)</option>
<option value=5>5 star (excellent)</option>
</select>
<br />
<br />
Reason for taking this drug: <br/><form:input path="reasonForTaking" size="40" maxlength="50" /> (50 character max)<br/><form:errors path="reasonForTaking" cssClass="error" />
<br />
<br />
Please write a brief review of your experience: <br/><form:input path="reviewText" size="40" maxlength="500"/> (500 character max)<br/><form:errors path="reviewText" cssClass="error" />
<br />
<br />
Overall, what was your experience with this drug?
<br/> 
<select name=positiveReview>
<option value=1 selected>positive</option>
<option value=0>negative</option>
</select>
<form:input path="user_id" value="${account.id}" type="hidden" /><br/><form:errors path="user_id" cssClass="error" />
<form:input path="drug_id" value="${drug.id}" type="hidden" /><br/><form:errors path="drug_id" cssClass="error" />
<br />
<br/>
<input type="submit" name="submit" value="Submit">
<br />
<br />
</form:form>

</div>
</div>

<div id="sidebar">
<div style="text-align: left;"></div>
<h3 style="text-align: left;"><img style="width: 225px; height: 129px;" alt="" src="images/bluepill.jpg" /><br /></h3><br /></div>
</div>









<!-- end main page -->
